package com.molyfun.parents.dao.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by william(liuchao.hit@gmail.com).
 * Date:11/23/16.
 *
 * 课程下载任务，客户端初始化读取这里的数据获取状态
 *
 */
@Entity
public class CourseDownloadTask {
    @Id
    private Long id;
    //下载课程的ID
    @Unique
    private String downloadKeyId;
    //搜藏ID，也就是下载ID，用于删除记录
    @Unique
    private String relid;
    //0未下载 1未完成 2完成
    private int state;
    //课程json数据
    private String jsonStr;
    public String getJsonStr() {
        return this.jsonStr;
    }
    public void setJsonStr(String jsonStr) {
        this.jsonStr = jsonStr;
    }
    public int getState() {
        return this.state;
    }
    public void setState(int state) {
        this.state = state;
    }
    public String getRelid() {
        return this.relid;
    }
    public void setRelid(String relid) {
        this.relid = relid;
    }
    public String getDownloadKeyId() {
        return this.downloadKeyId;
    }
    public void setDownloadKeyId(String downloadKeyId) {
        this.downloadKeyId = downloadKeyId;
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    @Generated(hash = 1494928038)
    public CourseDownloadTask(Long id, String downloadKeyId, String relid,
            int state, String jsonStr) {
        this.id = id;
        this.downloadKeyId = downloadKeyId;
        this.relid = relid;
        this.state = state;
        this.jsonStr = jsonStr;
    }
    @Generated(hash = 2045983515)
    public CourseDownloadTask() {
    }
    
    
}
